package com.zrrd.learn.chapter08面向对象.pattern.singleton;

/**
 * 数学运算测试类
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/1 13:39
 */

public class NumHandletest {

    public static int mathComputer(int a,int b,NumHandle n) {
        return n.operation(a,b);
    }

    public static void main(String[] args) {
        NumHandle n1=(a,b) -> a+b;
        System.out.println(n1.operation(2,3));
    }

}
